package com.tdkj.model.decorate;

import java.math.BigDecimal;
import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

/**
 * XnkyQuotation entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "decorate_decorate_custom")
public class BeanDecorateCustomBuy extends BaseEntity implements java.io.Serializable {

	private BigDecimal timeLimitAmount;
	private String timeLimitUnit;
	private BigDecimal price;
	private String unit;
	private BeanDecorate decorate;
	private Timestamp createTime;
	
	/**
	 * @return the timeLimitAmount
	 */
	public BigDecimal getTimeLimitAmount() {
		return timeLimitAmount;
	}
	/**
	 * @param timeLimitAmount the timeLimitAmount to set
	 */
	public void setTimeLimitAmount(BigDecimal timeLimitAmount) {
		this.timeLimitAmount = timeLimitAmount;
	}
	/**
	 * @return the timeLimitUnit
	 */
	public String getTimeLimitUnit() {
		return timeLimitUnit;
	}
	/**
	 * @param timeLimitUnit the timeLimitUnit to set
	 */
	public void setTimeLimitUnit(String timeLimitUnit) {
		this.timeLimitUnit = timeLimitUnit;
	}
	/**
	 * @return the price
	 */
	public BigDecimal getPrice() {
		return price;
	}
	/**
	 * @param price the price to set
	 */
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	
	/**
	 * @return the plate
	 */
	@ManyToOne(cascade={CascadeType.REFRESH}, fetch=FetchType.LAZY)
	@JoinColumn(name="decorate_id")
	public BeanDecorate getDecorate() {
		return decorate;
	}
	/**
	 * @param plate the plate to set
	 */
	public void setDecorate(BeanDecorate decorate) {
		this.decorate = decorate;
	}
	/**
	 * @return the unit
	 */
	public String getUnit() {
		return unit;
	}
	/**
	 * @param unit the unit to set
	 */
	public void setUnit(String unit) {
		this.unit = unit;
	}
	/**
	 * @return the createTime
	 */
	public Timestamp getCreateTime() {
		return createTime;
	}
	/**
	 * @param createTime the createTime to set
	 */
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

}